Accelerator B2B Orders Process API - Implementation Template
Data mappings
This document provides information generated from the DataWeave scripts included in the project, such as function definitions, variable definitions, and data mapping tables.
Module | Description |
---|---|
order-response | Success response |
generate-shipments-from-order-shipped-event | Create Shipments for each Fulfillment Orders |
order-allocated-message | Order Allocated Notification |
order-created-message | Order Created Notification |
order-invoiced-message | Order Invoiced Notification |
order-payment-received | Order Payment Notification |
order-shipped-message | Order Shipped Notification |
transform-allocated-event-to-purchase-order | CIM OrderAllocatedEvent to PurchaseOrder Mapping. The PurchaseOrder is used to invoke the 855 Po Ack Message flow in Anypoint Partner Manager. |
transform-order-invoiced-event-to-order-invoice-notice | Order Invoiced Event to Order Invoiced Notice |
transform-order-shipped-event-to-order-shipment-notice | Order Shipped Event to Order Shipped Notice |
order-response
Success response
Source:
./src/main/resources/dwl/order-response.dwl
generate-shipments-from-order-shipped-event
Create Shipments for each Fulfillment Orders
Source:
./src/main/resources/dwl/generate-shipments-from-order-shipped-event.dwl
Functions
fun getFulfillmentProductsIdArr (fulfillmentOrderProducts)
This function returns the flattened array of fulfillmentOrderProduct identifiers.
fun getShipmentProducts (inputProductIdsArr)
This function returns shipmentProducts whose fulfillmentOrderProductId match any of the IDs provided in the inputProductIdsArr parameter.
fun getShipmentPackages (inputPackageIdsArr)
This function returns shipmentPackages whose ID match any of the IDs provided in the inputPackageIdsArr parameter.
fun getShipmentDocuments (inputPackageIdsArr)
This function returns shipmentDocuments whose shipmentPackageId match any of the IDs provided in the inputPackageIdsArr parameter.
order-allocated-message
Order Allocated Notification
Source:
./src/main/resources/dwl/order-allocated-message.dwl
order-created-message
Order Created Notification
Source:
./src/main/resources/dwl/order-created-message.dwl
order-invoiced-message
Order Invoiced Notification
Source:
./src/main/resources/dwl/order-invoiced-message.dwl
order-payment-received
Order Payment Notification
Source:
./src/main/resources/dwl/order-payment-received.dwl
order-shipped-message
Order Shipped Notification
Source:
./src/main/resources/dwl/order-shipped-message.dwl
transform-allocated-event-to-purchase-order
CIM OrderAllocatedEvent to PurchaseOrder Mapping.
The PurchaseOrder is used to invoke the 855 Po Ack Message flow in Anypoint Partner Manager.
Source:
./src/main/resources/dwl/transform-allocated-event-to-purchase-order.dwl
Mapping Tables
Maps CIM OrderAllocatedEvent to PurchaseOrder
PurchaseOrder | OrderAllocatedEvent | Description |
---|---|---|
id | id | Identifier of the PurchaseOrder |
purchaseOrderNumber | purchaseOrderNumber | The purchase order number |
purchaseOrderPurpose | "New" | The Purchase order purpose. Set as "New" |
purchaseOrderDate | purchaseOrderDate | Date the purchase order was created |
supplierId | "MYTHICAL" | The Identifier of the supplier in Anypoint Partner Manager |
purchasingOrganizationCode | purchasingOrganizationCode | The Name of the organization that submitted the purchase order |
buyerEmailAddress | buyerEmailAddress | Email address of the individual responsible for the purchase order |
purchaseOrderProducts | fulfillmentOrders | The array of all the fulfillmentOrderProducts of each fulfillment order |
transform-order-invoiced-event-to-order-invoice-notice
Source:
./src/main/resources/dwl/transform-order-invoiced-event-to-order-invoice-notice.dwl
transform-order-shipped-event-to-order-shipment-notice
Source:
./src/main/resources/dwl/transform-order-shipped-event-to-order-shipment-notice.dwl